<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href='style/postQuestion.css'/>
<title>发布问题界面</title>
<script>
onload=function(){
    var fhjg=document.getElementById('fhjg').innerHTML;
    if(fhjg!=""){
        alert(fhjg);
        }
}
</script>
</head>
<body>
<!-- ---------判断是否登录 -->
<%  
String pname=(String)request.getSession().getAttribute("pname");
if(pname == null){
	response.sendRedirect("login.jsp"); 
}

%>



<!-----------导入hread.jsp--------------->
<%@include file="hread.jsp" %>

<!-- ---------内容 -->
 <div class=middle>
  <font color=red  id='fhjg' hidden>${fhjg}</font>
     <h3>发布问题界面</h3>
     <form action="postQuestion.do" method="POST" enctype="multipart/form-date">
         问题标题：<input type=text name=title class=one size=30 required placeholder="请输入标题"><br>
         问题描述：<input type=text name=describe class=one size=30 required placeholder="请输入描述"><br>
       
         问题内容：<br>
         <textarea class=xwnr name=qcontent rows='14' cols='100' required placeholder="请输入内容"></textarea><br/>
         上传图片：<input type="file" name=picture><br>
         <input type='submit' class=fban value="发布" />
         <input type="reset" class=zcann>
     </form>
 </div>

</body>
</html>